<?php $team1 = Doctrine::getTable('BbTeams')->findOneById($match->getTeam1Id()); 
	  $team2 = Doctrine::getTable('BbTeams')->findOneById($match->getTeam2Id()); ?>
<div>
<div style="float:left; margin-right:10px; margin-top:15px;">
	  <a href="<?php echo url_for('team/show?seasonId='.$seasonId.'&name='.$team1)?>">
	  	<?php echo image_tag("/uploads/team/".$team1->getDefImg(), array('alt'=>$team1, 'style'=>'max-width:50px;max-height:50px;float:left;padding:0px 10px 10px 10px;border:1px solid #eee;'))?>
	  </a>
	 <h5 style="font-size:30px; float:left; text-align: center;"><?php echo $match->getScore1(); ?></h5>
</div>
<div class="mod-content" style="width:290px; float:left;">
		<table cellspacing="1" cellpadding="3" class="tablehead">
			<tbody>
				<tr align="center" class="colhead">
					  <td></td>
					  <td>1р үе</td>
					  <td>2р үе</td>
					  <td>3р үе</td>
					  <td>4р үе</td>
					  <td>Нийт</td>
				</tr>
				<tr align="center" class="first">
					 <td><a class="bi" href="<?php echo url_for('team/show?seasonId='.$seasonId.'&name='.$team1)?>"><?php echo $team1->getTAbrname(); ?></a></td>
					  <td><?php echo $match->getRound1Score1(); ?></td>
					  <td><?php echo $match->getRound2Score1(); ?></td>
					  <td><?php echo $match->getRound3Score1(); ?></td>
					  <td><?php echo $match->getRound4Score1(); ?></td>
					  <td><?php echo $match->getScore1(); ?></td>		
				</tr>
				<tr align="center" class="even">
					  <td><a class="bi" href="<?php echo url_for('team/show?seasonId='.$seasonId.'&name='.$team2)?>"><?php echo $team2->getTAbrname();  ?></a></td>
					  <td><?php echo $match->getRound1Score2(); ?></td>
					  <td><?php echo $match->getRound2Score2(); ?></td>
					  <td><?php echo $match->getRound3Score2(); ?></td>
					  <td><?php echo $match->getRound4Score2(); ?></td>
					  <td><?php echo $match->getScore2(); ?></td>		
				</tr>
			
        	</tbody>
        </table>
        <div class="foot-footer" style="width:200px; align: center;"></div>	
</div>
<div style="float:right; margin-left:10px; margin-top:15px;">
	  <h5 style="font-size:30px; float:left; text-align: center;"><?php echo $match->getScore2(); ?></h5>
	  <a href="<?php echo url_for('team/show?seasonId='.$seasonId.'&name='.$team2)?>">  
	  	<?php echo image_tag("/uploads/team/".$team2->getDefImg(), array('alt'=>$team2, 'style'=>'max-width:50px;max-height:50px;float:left;padding:0px 10px 10px 10px;border:1px solid #eee;'))?>
	  </a>
</div>

	
</div>

